import request from '@/utils/request'

/** *
 * 用户收藏的SQL列表
 */
function list(data) {
  return request({
    url: '/sapi/dbms/user-sql-collect/list',
    method: 'post',
    data: data
  })
}

/** *
 * 添加SQL收藏
 * @param data
 */
function add(data) {
  return request({
    url: '/sapi/dbms/user-sql-collect/add',
    method: 'post',
    data: data
  })
}

/** *
 * 删除SQL收藏
 * @param data
 */
function del(data) {
  return request({
    url: '/sapi/dbms/user-sql-collect/del',
    method: 'post',
    data: data
  })
}

/** *
 * 修改
 * @param data
 */
function edit(data) {
  return request({
    url: '/sapi/dbms/user-sql-collect/edit',
    method: 'post',
    data: data
  })
}

export default {
  list,
  add,
  del,
  edit
}
